<?php
/**
 * Created by xun at 2021/4/19
 */

return [
    'sys' => ['class' => 'backend\modules\Sys\Module',],
    'rbac' => [
        'class' => 'backend\modules\Sys\modules\Rbac\Module',
        'permission' => 'P_System',
    ],
    'user' => [
        'class' => 'backend\modules\Sys\modules\Admin\Module',
        'enableConfirmation' => false,
        'enableRegistration' => false,
        'adminPermission' => 'P_System',
        'modelMap' => [
            'RegistrationForm' => 'backend\models\c2\entity\rbac\RegistrationForm',
            'Profile' => 'backend\models\c2\entity\rbac\BeUserProfile',
            'SettingsForm' => 'backend\models\c2\entity\rbac\SettingsForm',
            'User' => 'backend\models\c2\entity\rbac\BeUser',
            'LoginForm' => 'backend\models\c2\form\LoginForm',
        ],
    ],
    /*  CZA & Kartik Public Service Modules, Begin ** */
    'attachments' => [
        'class' => 'cza\base\modules\Attachments\Module',
    ],
    'log-reader' => [
        'class' => 'zhuravljov\yii\logreader\Module',
        'aliases' => [
            'backend Errors' => '@backend/runtime/logs/backend_debug.log',
            'backend Info' => '@backend/runtime/logs/backend_info.log',
            'Console Errors' => '@backend/runtime/logs/app.log',

        ],
    ],
    'gridview' => [
        'class' => 'kartik\grid\Module',
        'downloadAction' => '/attachments/export/download',
    ],
    /*  CZA & Kartik Public Service Modules, End ** */
    'redactor' => [
        'class' => 'yii\redactor\RedactorModule',
        'imageAllowExtensions' => ['jpg', 'png', 'gif'],
        'uploadDir' => '@frontend/web/uploads',
        'uploadUrl' => FRONTEND_BASE_URL . '/uploads',
    ],
    'material' => [
        'class' => 'backend\modules\Material\Module',
    ],
    'statistics' => [
        'class' => 'backend\modules\Statistics\Module',
    ],
    'post' => [
        'class' => 'backend\modules\Post\Module',
    ],
    'community' => [
        'class' => 'backend\modules\Community\Module',
    ],
    'building-number' => [
        'class' => 'backend\modules\BuildingNumber\Module',
    ],
    'unit' => [
        'class' => 'backend\modules\Unit\Module',
    ],
    'house' => [
        'class' => 'backend\modules\House\Module',
    ],
    'device' => [
        'class' => 'backend\modules\Device\Module',
    ],
    'proprietor' => [
        'class' => 'backend\modules\Proprietor\Module',
    ],
    'fe-user' => [
        'class' => 'backend\modules\FeUser\Module',
    ],

    'life-bill' => [
        'class' => 'backend\modules\LifeBill\Module',
    ],
    'vip' => [
        'class' => 'backend\modules\Vip\Module',
    ],
    'app-version' => [
        'class' => 'backend\modules\AppVersion\Module',
    ],

];